package cn.stylefeng.guns.modular.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("sys_auditl")
public class SysAuditl implements Serializable {

    @TableId(value = "log_id", type = IdType.ID_WORKER)
    private Long logId;

    @TableField(value = "log_title")
    private String logTitle;

    @TableField(value = "log_remote")
    private String logRemote;

    @TableField(value = "log_mac")
    private String logMac;

    @TableField(value = "log_agent")
    private String logAgent;

    @TableField(value = "log_uri")
    private String logUri;

    @TableField(value = "log_method")
    private String logMethod;

    @TableField(value = "log_params")
    private String logParams;

    @TableField(value = "log_exception")
    private String logException;

    @TableField(value = "tenant_id")
    private Long tenantId	;

    @TableField(value = "user_account")
    private String userAccount;

    @TableField(value = "user_name")
    private String userName;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time")
    private Date createTime;


}
